<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/login.css" />
	</head>
	<body>
		<header>

		</header>
		<section>
			<div class="login-wrapper">
				<div class="login-ban">
					<img src="img/imgs/banlogin.png" alt="">
				</div>
				<div class="login-form">
					<div class="clearfix">
						<h3>账号登录</h3>
						<p class="tip">
							<a href="/user/loginbyphone.html" class="login-tip">手机动态码登录&nbsp;&nbsp;<span
									id="ts"></span></a>
						</p>
					</div>
					<div id="login">
						<div class="text-item">
							<label>
								<input type="text" name="username" class="username" placeholder="账号">
							</label>
							<button type="button" class="clear"></button>
						</div>
						<div class="text-item">
							<label>
								<input type="password" name="password" class="password" placeholder="请输入密码">
							</label>
							<button type="button" class="clear"></button>
						</div>
						<div class="imgcheck-item">
							<label>
								<input type="text" id="code" placeholder="验证码">
							</label>
							<div class="imgbtn">
								<img class="imgcheck" src="img/imgs/ValidateCode.jpg">
								<button type="button" class="imgchange" id="changecode">换一张</button>
							</div>
						</div>
						<div class="submit-item">
							<p class="forget">
								<a href="#">忘记密码？</a>
							</p>
							<button type="submit" id="btnLogin">登 录</button>
						</div>
						<div class="other-login clerafix">
							<div class="login-ways">
								<span>其他方式登录：</span>
								<a class="qq" href="#"></a>
								<a class="sina" href="#"></a>
								<a class="weixin" href="#"></a>
							</div>
							<div class="reg-tips">
								<span>没有账号？ 去</span>
								<a href="register.html" class="reg-link">注册</a>
							</div>
						</div>
					</div>
				</div>
			</div>
			</div>

		</section>
		<footer>

		</footer>
		<aside>
			
		</aside>
	</body>
</html>

<script src="js/jQuery.js" type="text/javascript" charset="utf-8"></script>
<script src="js/login1.js" type="text/javascript" charset="utf-8"></script>
<!-- <script>
	$(function() {
		$("#btnLogin").on("click", function() {
			var userName = $(".username").val();
			var pwd = $(".password").val();

			$.post("php/login.php", {
				"username": userName,
				"userpass": pwd
			}, function(data) {
				// console.log(data);
				if (data == "success") {
					let date = new Date();
					date.setDate(date.getDate() + 1);
					document.cookie = `user=${$(".username").val()};expires=` + date;
					console.log(document.cookie);
					alert("登录成功!");
					location = "index.html";
				} else {
					alert("用户名或密码有误！");
					location = "login1.html";
				}
			});
		});
	});
	let cookie1 = document.cookie;
	if (cookie1.length > 0) {
		let c = cookie1.split("=");
		console.log(c);
		document.querySelector(".header-top-l").innerHTML = "你好！" + c[1];
	}
</script> -->

<script>
	$("header").load("header.html");
</script>
<script>
	$("footer").load("footer.html");
</script>
<script >
	$("aside").load("sidebar.html");
</script>
